package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.NewLoginBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.LOGIN)
public class ConnLogin extends BaseAsyPost<NewLoginBean>{

    public String mobile,password;


    public ConnLogin(String mobile, String password,  AsyCallBack<NewLoginBean> asyCallBack) {
        super(asyCallBack);
        this.mobile=mobile;
        this.password=password;


    }

    @Override
    protected NewLoginBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(),"aaaaaaaaaaaaaaaaa");

        Log.d(object.toString(),"aaaaaaaaaaaaaaaaa");
        Gson gson=new Gson();

        NewLoginBean loginBean=new NewLoginBean();

        loginBean=gson.fromJson(object.toString(),NewLoginBean.class);


        return loginBean;




    }
}



